package com.eastmoney.emis.edda.infrastructure.message;

import com.eastmoney.emis.utils.common.po.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.infrastructure.message
 * @author: 汪程程
 * @date: 2022/10/18 11:18 AM
 * @version: 1.0
 */
@FeignClient(name = "EMIS-MessageCenter-Api-Report",url = "${edda.feign.message-api-service}")
public interface MessageSenderProvider {

    @PostMapping("/innerApi/messagePush/counterPrivateMessage")
    BaseResponse<Object> send(@RequestBody AppMessage appMessage);

    @PostMapping("/innerApi/shortMessage/counterSendShortMessageWithTemplate")
    BaseResponse<Object> send(@RequestBody SmsMessage smsMessage);
}
